# Maintainer: Jose-Luis Rivas <ghostbar@riseup.net>
pkgname=bats
pkgver=1.7.0
pkgrel=0
pkgdesc="Bash Automated Testing System"
options="!check" # Test passes CI/locally, fails on builders
url="https://github.com/bats-core/bats-core"
arch="noarch"
license="MIT"
depends="bash"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.zip::https://github.com/bats-core/bats-core/archive/v$pkgver.zip"
builddir="$srcdir/bats-core-$pkgver"

check() {
	bash -c 'bin/bats --tap test'
}

package() {
	./install.sh "$pkgdir"/usr
}
sha512sums="
557ba2984a21c02ce5d9d819839866390b190905bb87298e3117e4b41484f5eba8b4f471062d7b647b65f750cc1c774db5d7d33d35a47fe163a7d9e54c591e12  bats-1.7.0.zip
"
